import axios from '@/request/http';
import base from "../base";
// import QS from 'qs';

const office = {

    // 常用 CRUD
    // 获取所有数据
    getAll(){
        return axios.get(`${base.sq}/office`)
    },
    officeAdd(office){
        return axios.post(`${base.sq}/office`,{
            ...office
        })
    },
    officePatch(id , office){
        return axios.patch(`${base.sq}/office/${id}`,{
            ...office
        })
    },
    officeDelete(id){
        return axios.delete(`${base.sq}/office/${id}`);
    },
}

export default office;
